<?php    
    $c = new Criteria();
    $paises = PaisPeer::doSelect($c);
    if ($usuario->getPaisId()) {
        $pais_selected = $usuario->getPaisId();
    }
    else if (count($paises)>0){
        $pais_selected = $paises[0]->getId();
    } else {
        $pais_selected = "";
    }
    echo select_tag('usuario[pais_id]',objects_for_select(PaisPeer::getEnOrden(),'getId','getNombre',$pais_selected,'include_custom=Seleccione'));
?>
